package com.geekmvc.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "coffeeFeign", url = "http://localhost:8080/coffee")
@Component
public interface CoffeeFeign {
    @GetMapping("/json/")
    public String getCoffeeAll();
}
